<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta name="renderer" content="webkit">
    <title>Title</title>
    <link rel="stylesheet" href="__CSS__/pintuer.css">
    <link rel="stylesheet" href="__CSS__/admin.css">
    <link rel="stylesheet" href="__STATIC__/css/layui.css">
    <script src="__STATIC__/layui.js"></script>
    <script src="__JS__/jquery.js"></script>
    <script src="__JS__/pintuer.js"></script>
</head>
<style>
    .table tr{height: auto; border: solid 1px black;}
    .table td{ border: solid 1px black;}
</style>
<body>
<h1 align="center" style="margin: 25px;margin-bottom: 50px"><b>{$project.project_name}</b></h1>
<table class="table" border="1" style="margin: auto">
    <tr>
        <td colspan="2" align="center" valign="middle">工程地址</td>
        <td colspan="2" align="center" valign="middle">{$project.project_address}</td>
        <td colspan="2" align="center" valign="middle">合同编号</td>
        <td colspan="2" align="center" valign="middle">{$project.project_contract_code}</td>
    </tr>
    <tr>
        <td colspan="2" align="center" valign="middle">供货单位名称</td>
        <td colspan="6" valign="center">{$project.project_supplier}</td>
    </tr>
    <tr>
        <td colspan="2" align="center" valign="middle">合同总金额</td>
        <td colspan="6" valign="center">{$project.project_money}</td>
    </tr>
    <tr>
        <td colspan="2" align="center" valign="middle">以累计付款额</td>
        <td colspan="2" align="center" valign="middle">{$project.paymoney}</td>
        <td colspan="2" align="center" valign="middle">占合同总金额百分比</td>
        <td colspan="2" align="center" valign="middle">{$project.paymoneyrate}</td>
    </tr>
    <tr>
        <td rowspan="{$project.num}" align="center" valign="middle">已累计付款明细<span style="color: red">（可点击单号查看）</span></td>
        <td align="center" valign="middle">单号</td>
        <td align="center" valign="middle">金额</td>
        <td align="center" valign="middle">支付日期</td>
        <td align="center" valign="middle">百分比</td>
        <td align="center" valign="middle">付款内容</td>
        <td align="center" valign="middle">追加/扣除款额</td>
        <td align="center" valign="middle">发票号码</td>
    </tr>
    {volist name="$schedules" id="vo"}
    <tr align="center" valign="middle">
        <td><b><a href="{:url('Project/project_info')}?project_id={$project.id}&schedule_id={$vo.id}"><span style="color: blue">{$vo.id}</span></a></b></td>
        <td>{$vo.money}</td>
        <td>{$vo.project_pay_time}</td>
        <td>{$vo.money_rate}</td>
        <td>{$vo.project_pay_info}</td>
        <td>{$vo.additional_deductions}</td>
        <td>{$vo.bill}</td>
    </tr>
    {/volist}
    <tr align="center" valign="middle">
        <td colspan="2">合同付款进度</td>
        <td colspan="6">{$project.project_schedule}</td>
    </tr>
    {volist name="$schedule.apply_state" id="item"}
    <tr>
        <td colspan="8">
            <div>
                <div style="margin-bottom: 30px">{$item.role}:{$item.audit_opinion}</div>
                <div style="margin-left: 900px;margin-bottom: 10px">日期：{$item.audit_time}</div>
                <div style="margin-left: 900px;margin-bottom: 10px">签名：{$item.audit_name}</div>
            </div>
        </td>
    </tr>
    {/volist}
</table>
<div style="margin-left: 900px;margin-top: 25px;margin-bottom: 30px">
    <a class="layui-btn" href="javascript:history.go(-1)">返回上一步</a>
</div>
</body>
</html>